package edu.xust.entity;

import java.util.ArrayList;
import java.util.List;

public class TransportbillsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public TransportbillsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGoodidIsNull() {
            addCriterion("goodid is null");
            return (Criteria) this;
        }

        public Criteria andGoodidIsNotNull() {
            addCriterion("goodid is not null");
            return (Criteria) this;
        }

        public Criteria andGoodidEqualTo(String value) {
            addCriterion("goodid =", value, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidNotEqualTo(String value) {
            addCriterion("goodid <>", value, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidGreaterThan(String value) {
            addCriterion("goodid >", value, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidGreaterThanOrEqualTo(String value) {
            addCriterion("goodid >=", value, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidLessThan(String value) {
            addCriterion("goodid <", value, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidLessThanOrEqualTo(String value) {
            addCriterion("goodid <=", value, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidLike(String value) {
            addCriterion("goodid like", value, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidNotLike(String value) {
            addCriterion("goodid not like", value, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidIn(List<String> values) {
            addCriterion("goodid in", values, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidNotIn(List<String> values) {
            addCriterion("goodid not in", values, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidBetween(String value1, String value2) {
            addCriterion("goodid between", value1, value2, "goodid");
            return (Criteria) this;
        }

        public Criteria andGoodidNotBetween(String value1, String value2) {
            addCriterion("goodid not between", value1, value2, "goodid");
            return (Criteria) this;
        }

        public Criteria andStartaddressIsNull() {
            addCriterion("startaddress is null");
            return (Criteria) this;
        }

        public Criteria andStartaddressIsNotNull() {
            addCriterion("startaddress is not null");
            return (Criteria) this;
        }

        public Criteria andStartaddressEqualTo(String value) {
            addCriterion("startaddress =", value, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressNotEqualTo(String value) {
            addCriterion("startaddress <>", value, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressGreaterThan(String value) {
            addCriterion("startaddress >", value, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressGreaterThanOrEqualTo(String value) {
            addCriterion("startaddress >=", value, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressLessThan(String value) {
            addCriterion("startaddress <", value, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressLessThanOrEqualTo(String value) {
            addCriterion("startaddress <=", value, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressLike(String value) {
            addCriterion("startaddress like", value, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressNotLike(String value) {
            addCriterion("startaddress not like", value, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressIn(List<String> values) {
            addCriterion("startaddress in", values, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressNotIn(List<String> values) {
            addCriterion("startaddress not in", values, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressBetween(String value1, String value2) {
            addCriterion("startaddress between", value1, value2, "startaddress");
            return (Criteria) this;
        }

        public Criteria andStartaddressNotBetween(String value1, String value2) {
            addCriterion("startaddress not between", value1, value2, "startaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressIsNull() {
            addCriterion("endaddress is null");
            return (Criteria) this;
        }

        public Criteria andEndaddressIsNotNull() {
            addCriterion("endaddress is not null");
            return (Criteria) this;
        }

        public Criteria andEndaddressEqualTo(String value) {
            addCriterion("endaddress =", value, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressNotEqualTo(String value) {
            addCriterion("endaddress <>", value, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressGreaterThan(String value) {
            addCriterion("endaddress >", value, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressGreaterThanOrEqualTo(String value) {
            addCriterion("endaddress >=", value, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressLessThan(String value) {
            addCriterion("endaddress <", value, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressLessThanOrEqualTo(String value) {
            addCriterion("endaddress <=", value, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressLike(String value) {
            addCriterion("endaddress like", value, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressNotLike(String value) {
            addCriterion("endaddress not like", value, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressIn(List<String> values) {
            addCriterion("endaddress in", values, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressNotIn(List<String> values) {
            addCriterion("endaddress not in", values, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressBetween(String value1, String value2) {
            addCriterion("endaddress between", value1, value2, "endaddress");
            return (Criteria) this;
        }

        public Criteria andEndaddressNotBetween(String value1, String value2) {
            addCriterion("endaddress not between", value1, value2, "endaddress");
            return (Criteria) this;
        }

        public Criteria andDidIsNull() {
            addCriterion("did is null");
            return (Criteria) this;
        }

        public Criteria andDidIsNotNull() {
            addCriterion("did is not null");
            return (Criteria) this;
        }

        public Criteria andDidEqualTo(String value) {
            addCriterion("did =", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotEqualTo(String value) {
            addCriterion("did <>", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThan(String value) {
            addCriterion("did >", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThanOrEqualTo(String value) {
            addCriterion("did >=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThan(String value) {
            addCriterion("did <", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThanOrEqualTo(String value) {
            addCriterion("did <=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLike(String value) {
            addCriterion("did like", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotLike(String value) {
            addCriterion("did not like", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidIn(List<String> values) {
            addCriterion("did in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotIn(List<String> values) {
            addCriterion("did not in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidBetween(String value1, String value2) {
            addCriterion("did between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotBetween(String value1, String value2) {
            addCriterion("did not between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}